//
//  Account.m
//  EBOexchange
//
//  Created by  ztryxh on 2017/9/26.
//  Copyright © 2017年 ebo. All rights reserved.
//

#import "Account.h"

@implementation Account



-(id)initWithCoder:(NSCoder *)aDecoder{
    if(self=[super init]){
     
        self.userName = [aDecoder decodeObjectForKey:@"userName"];
        self.nickName = [aDecoder decodeObjectForKey:@"nickName"];
        self.phoneNumber=[aDecoder decodeObjectForKey:@"phoneNumber"];
        self.prefix=[aDecoder decodeObjectForKey:@"prefix"];
        self.emailAddress=[aDecoder decodeObjectForKey:@"emailAddress"];
        self.userId=[aDecoder decodeObjectForKey:@"userId"];
        self.sex = [aDecoder decodeIntegerForKey:@"sex"];
        self.token=[aDecoder decodeObjectForKey:@"token"];
        self.loginPwd=[aDecoder decodeObjectForKey:@"loginPwd"];
        self.keyWord=[aDecoder decodeObjectForKey:@"keyWord"];
        
        
        self.headImgUrl = [aDecoder decodeObjectForKey:@"headImgUrl"];
        self.headImgFileName=[aDecoder decodeObjectForKey:@"headImgFileName"];
        self.gesturePwd = [aDecoder decodeObjectForKey:@"gesturePwd"];
        self.emialVerStatus = [aDecoder decodeObjectForKey:@"emialVerStatus"];
        self.phoneVerStatus = [aDecoder decodeObjectForKey:@"phoneVerStatus"];
        self.gooleVerStatus = [aDecoder decodeObjectForKey:@"gooleVerStatus"];
         self.getsutureStatus = [aDecoder decodeObjectForKey:@"getsutureStatus"];
         self.fingerPrintStatus = [aDecoder decodeObjectForKey:@"fingerPrintStatus"];
        self.equipment_id=[aDecoder decodeObjectForKey:@"equipment_id"];
        self.isBind=[aDecoder decodeBoolForKey:@"isBind"];
        self.isInter=[aDecoder decodeBoolForKey:@"isInter"];
        self.isCheck=[aDecoder decodeBoolForKey:@"isCheck"];
        self.isCopy=[aDecoder decodeBoolForKey:@"isCopy"];
        
   
        
    }
    return self;
}
-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.loginPwd forKey:@"loginPwd"];
    [aCoder encodeObject:self.userName forKey:@"userName"];
    [aCoder encodeObject:self.nickName forKey:@"nickName"];
    [aCoder encodeObject:self.phoneNumber forKey:@"phoneNumber"];
    [aCoder encodeObject:self.prefix forKey:@"prefix"];
    [aCoder encodeObject:self.emailAddress forKey:@"emailAddress"];
    [aCoder encodeInteger:self.sex forKey:@"sex"];
    [aCoder encodeObject:self.token forKey:@"token"];
    [aCoder encodeObject:self.userId forKey:@"userId"];
    
    [aCoder encodeObject:self.headImgUrl forKey:@"headImgUrl"];
    [aCoder encodeObject:self.headImgFileName forKey:@"headImgFileName"];
    [aCoder encodeObject:self.gesturePwd forKey:@"gesturePwd"];
    [aCoder encodeObject:self.emialVerStatus forKey:@"emialVerStatus"];
    [aCoder encodeObject:self.phoneVerStatus forKey:@"phoneVerStatus"];
    [aCoder encodeObject:self.gooleVerStatus forKey:@"gooleVerStatus"];
    [aCoder encodeObject:self.getsutureStatus forKey:@"getsutureStatus"];
    [aCoder encodeObject:self.fingerPrintStatus forKey:@"fingerPrintStatus"];
    [aCoder encodeObject:self.equipment_id forKey:@"equipment_id"];
    [aCoder encodeBool:self.isBind forKey:@"isBind"];
    [aCoder encodeBool:self.isInter forKey:@"isInter"];
    [aCoder encodeBool:self.isCheck forKey:@"isCheck"];
    [aCoder encodeBool:self.isCopy forKey:@"isCopy"];
    [aCoder encodeObject:self.keyWord forKey:@"keyWord"];
  
   
}
@end
